package com.jiahe.yehua.user;

import com.atguigu.yygh.model.user.Patient;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 阿良
 * @version 1.0
 * @date 2021/9/11 14:10
 */
@Repository
@FeignClient(value = "service-user")
public interface PatientFeignClient {
    /**
     *  根据id调用用户接口获取就诊人信息
     * @param id
     * @return
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(
            @ApiParam(name = "id", value = "就诊人id", required = true)
            @PathVariable("id") Long id);
}
